package com.qidian.mes.mapper;

import com.qidian.mes.pojo.Route;

import java.util.List;


public interface RouteMapper {
    /**
     * 分页查询
     * @param route
     * @return
     */
    List<Route> list(Route route);
    Route getByRouteCode(String routeCode);
    Route getByRouteName(String routeName);

    /**
     * 添加工艺流程
     * @param route
     * @return
     */
    int save(Route route);

    /**
     * 根据id删除信息
     * @param routeId
     * @return
     */
    int deleteByRouteId(Long routeId);

    Route selectByRouteId(Long routeId);
    int update(Route route);


}
